package shared.file

import shared.message._
import shared.runtime.Runtime
class FileInfoRequest (val file: String) extends IdentifiedMessage[FileInfoMessage]{
  def handle(rt: Runtime ) = new FileInfoMessage(id, rt.filesystem.getFile(file).map{_.toRemote}, rt.server.port)
}

class FileInfoMessage (val responseTo: Long, val info: Option[RemoteFile], val port: Int) extends ResponseMessage {
}
